// 提交相关类型
// 提交相关类型
import type { RepoValue } from './repository';

export interface TopCommitter {
  name: string;
  commitCount: number;
  totalChanges: number;
  role: string;
  department: string;
  averageMonthlyCommits?: number; // 历史Top5特有
  averageMonthlyChanges?: number; // 历史Top5特有
}

export interface CommitFormData {
  message: string;
  authorEmail: string;
  authorFullname: string;
  startDate: Date | null;
  endDate: Date | null;
  repo: RepoValue | null;
  engineerId: string;
}

export interface BaseInfo {
  latestImportDate: string | null;
  totalCommits: number;
  currentMonthCommits: number;
  previousMonthCommits: number;
}
